package cn.chenfyuan.demoapplication.service;

import cn.chenfyuan.demoapplication.entity.SysUser;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 * 用户服务类
 * </p>
 *
 * @author linweijian
 * @since 2018-05-02
 */
public interface SysUserService extends IService<SysUser> {
    /***
     *   分页查找
     * @author linweijian
     * @Date 2018/5/3 22:25
     ** @param page
     * @param vo
     * @return com.baomidou.mybatisplus.plugins.Page<cn.chenfyuan.demoapplication.entity.SysUser>
     * @throws
     **/
    Page<SysUser> selectPage(Page<SysUser> page, SysUser vo);


    /**
     * 根据用户账号查询用户
     * @param userName
     * @return
     */
    SysUser findByName(String userName);



    SysUser get(String userId);

}
